
function move(odiv, json, fnEnd)
{
	clearInterval(odiv.timer);
	odiv.timer=setInterval(function (){
		var bStop=true;	
		
		for(var attr in json)
		{
			var cur=0;
			
			if(attr=='opacity')
			{
				cur=Math.round(parseFloat(getStyle(odiv, attr))*100);
			}
			else
			{
				cur=parseInt(getStyle(odiv, attr));
			}
			
			var speed=(json[attr]-cur)/6;
			speed=speed>0?Math.ceil(speed):Math.floor(speed);
			
			if(cur!=json[attr]){
				bStop=false;
			}
				
			
			if(attr=='opacity')
			{
				odiv.style.filter='alpha(opacity:'+(cur+speed)+')';
				odiv.style.opacity=(cur+speed)/100;
			}
			else
			{
				odiv.style[attr]=cur+speed+'px';
			}
		}
		
		if(bStop)
		{
			clearInterval(odiv.timer);
						
			if(fnEnd)fnEnd();
		}
	}, 30);
}
function getStyle(odiv, name){
	return odiv.currentStyle ? odiv.currentStyle(name) : getComputedStyle(odiv,false)[name];
}